package com.zhang.family_doctor.mapper;

import com.zhang.family_doctor.entity.Treaty;
import org.apache.ibatis.annotations.Mapper;

public interface TreatyMapper {

    /**
     * 根据类型查询协议
     * @param agreementType
     * @return
     */
    Treaty getTreatyByAgreementType(Integer agreementType);

    /**
     * 根据类型修改协议
     * @param treaty
     */
    void updateByAgreementType(Treaty treaty);

    /**
     * 新增协议
     * @param treaty
     */
    void save(Treaty treaty);
}
